<?php
class user_model extends CI_Model{
	function __construct()
	{
		parent::__construct();
		
	}
	
	function get_user($username){
		$this->db->select('*');
		$this->db->from('user');
		$this->db->where('username', $username);
		$result = $this->db->get();
		return $result;
		
	}
	
}
?>